<%= link_to image_tag("/assets/logo_ulm.png", class: 'main_logo'), home_path %>

<div id="header_navigation">
  <%= link_to t('header.legal_notice'), legal_notice_path, class: "header_links" %> |
  <%= link_to t('header.contact'), contact_path, class: "header_links" %> |
  <%= link_to t('header.help'), help_path, class: "header_links" %> |
  <%= link_to t('header.ulm_university'), 'http://www.uni-ulm.de', class: "header_links", :target=>'_blank'%>
</div>
  
<div id="header_login">
	<% if logged_in? %>
            <%= t('header.logged_in_as', name: link_to(current_user.name, current_user)).html_safe %> &nbsp;&nbsp;&nbsp;| 
            <!--<% link_to t('header.user_settings'), edit_user_path(current_user) %> | -->
            <%= link_to t('header.logout'), logout_path, method: "delete", class: "header_links" %>
	<% else %>
            <%= link_to t('header.register'), register_path, id: "header_reg_log_link", class: "header_links" %> |
            <%= link_to t('header.login'), login_path, id: "header_login_link", class: "header_links", remote: true %>
	<% end %>
</div>

<div id="login_link_container"></div>
<div id="login_box"><%= render file: 'sessions/new' %></div>